package com.example.lotterysystem.service.dto;


import com.example.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;

@Data
public class ActivityDTO {

    private Long activityId;

    private String activityName;

    private String description;

    //活动状态
    private ActivityStatusEnum status;


    //活动是否有效
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }

}
